home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / sheriffa / licnonvc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-11  |  906 b   |  43 lines

  1. // This is a part of the Sheriff System Development Kit.
  2. // Copyright (C) 1997-1998 Acudata Limted.
  3. // All rights reserved.
  4. //
  5. // This source code is only intended as a supplement to the
  6. // Sheriff System Development Kit and related
  7. // electronic documentation provided with the SDK.
  8.  
  9. #ifndef LICNOVC_H
  10. #define LICNOVC_H
  11.  
  12. #ifndef HRESULT
  13. #define HRESULT    long
  14. #endif
  15.  
  16. #ifndef S_OK
  17. #define S_OK    ((HRESULT)0x00000000L)
  18. #endif
  19.  
  20. #ifndef SUCCEEDED
  21. #define SUCCEEDED(Status) ((HRESULT)(Status) >= 0) 
  22. #endif
  23.  
  24. #ifndef FAILED
  25. #define FAILED(Status) ((HRESULT)(Status)<0) 
  26. #endif
  27.  
  28. #ifndef MAKE_SCODE
  29. #define MAKE_SCODE(sev,fac,code) \
  30.     ((SCODE) (((unsigned long)(sev)<<31) | ((unsigned long)(fac)<<16) | ((unsigned long)(code))) )
  31. #endif
  32.  
  33. #ifndef SEVERITY_SUCCESS
  34. #define SEVERITY_SUCCESS    0
  35. #endif
  36.  
  37. #ifndef SEVERITY_ERROR
  38. #define SEVERITY_ERROR      1
  39. #endif
  40.  
  41.  
  42. #endif
  43.